package org.meetunexpectedly.service.video;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meetunexpectedly.entity.video.VideoComment;
import org.meetunexpectedly.entity.vo.BasePage;

import java.util.Collection;

/**
 * @Description: 视频评论服务接口
 * @Author: pupil
 * @Date: 2025/1/23 下午 4:59
 */
public interface VideoCommentService extends IService<VideoComment> {

    /**
     * 添加视频评论
     * @param videoId 视频id
     * @param content 评论内容
     * @param userId 用户id
     * @return
     */
    Boolean addComment(Long videoId, String content, Long userId);

    /**
     * 通过视频id获取评论
     * @param basePage 分页
     * @param videoId 视频id
     * @return
     */
    Collection<VideoComment> getCommentByVideoId(BasePage basePage, Long videoId);

    /**
     * 根据id删除评论
     * @param commentId 评论id
     * @param userId 用户id
     * @return
     */
    Boolean deleteCommentById(Long commentId, Long userId);
}
